﻿<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>


<isperp:grid url="wechat/mp/group/list" gridId="groupGrid"
	showSearchbar="false" cusEditUrl="wechat/mp/group/edit"
	beforeEditAction="getGroupIdAndName()" cusDialogHeight="300"
	cusDialogWidth="500" ondbClickRowEvent="groupGrid.edit(rowid);">

	<jsp:attribute name="toolbar">
	<isperp:toolbar id="mediaNewsToolbar">
		<isperp:button id="mediaNewsCreate" icon="icon-plus" text="新增用户组"
				cssClass="nui-mainbtn" onclick="groupGrid.create();"></isperp:button>
	</isperp:toolbar>
	</jsp:attribute>
	<jsp:body>
		<isperp:column name="id" title="编号" width="80">
		</isperp:column>
		<isperp:column name="name" title="名称" width="150">
		</isperp:column>
	</jsp:body>
</isperp:grid>

<script type="text/javascript">
	function getGroupIdAndName() {
		var rowData = groupGrid.getRowData();
		if (rowData == undefined) {
			return "";
		}
		return "?id=" + rowData.id + "&name=" + rowData.name;

	}
</script>
